package com.lyeducation.entities.order;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @ClassName OrderDetail
 * @Description
 * @Author Sky1in3
 * @Date 2019/1/11 2:11
 * @Version 1.0
 */
@Entity
@Table(name = "order_detail")
public class OrderDetail {

    /** 订单详情id */
    private String detailId;

    /** 订单id  */
    private String orderId;

    /** 课程id */
    private String courseId;

    /** 课程名 */
    private String courseName;

    /** 课程售价 */
    private BigDecimal coursePrice;

    /** 课程库存 */
    private Integer courseQuantity;

    /**
     * 课程封面
     */
    private String coursePic;

    @Id
    @Column(name = "detailId", length = 32)
    public String getDetailId() {
        return detailId;
    }

    public void setDetailId(String detailId) {
        this.detailId = detailId;
    }

    @Column(name = "orderId")
    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    @Column(name = "courseId")
    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    @Column(name = "courseName")
    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    @Column(name = "coursePrice")
    public BigDecimal getCoursePrice() {
        return coursePrice;
    }

    public void setCoursePrice(BigDecimal coursePrice) {
        this.coursePrice = coursePrice;
    }

    @Column(name = "courseQuantity")
    public Integer getCourseQuantity() {
        return courseQuantity;
    }

    public void setCourseQuantity(Integer courseQuantity) {
        this.courseQuantity = courseQuantity;
    }

    @Column(name = "coursePic")
    public String getCoursePic() {
        return coursePic;
    }

    public void setCoursePic(String coursePic) {
        this.coursePic = coursePic;
    }
}
